package com.design_pattern.responsibility;

/**
 * 责任链模式   此案例模拟 servlet的请求的责任链实现
 */
public class Main {

    public static void main(String[] args) {
        FilterChain filterChain = new FilterChain();
        filterChain.addFilter(new HTMLFilter()).addFilter(new ImageFilter());

        filterChain.doFilter(new Request("request"), new Response("response"), filterChain);

    }
}
